<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新博客</title>
</head>
<body>
    <div id="first">
        <form>
            <label>选择所属板块（无法保存，请注意修改）</label>
            <select id="domain">
                <option value="后台">后台</option>
                <option value="前端">前端</option>
                <option value="移动开发">移动开发</option>
                <option value="编程语言">编程语言</option>
                <option value="Java">Java</option>
                <option value="Python">Python</option>
                <option value="人工智能">人工智能</option>
                <option value="大数据">大数据</option>
                <option value="数据结构与算法">数据结构与算法</option>
                <option value="服务器">服务器</option>
            </select>
        </form>
        <br>
        <textarea id="title" style="width: 500px;height: 50px;word-break:break-all" placeholder="请在此编辑标题" :value="firsts.title"></textarea>
        <br>
        <textarea style="height:200px;width:900px;word-break:break-all" id="description"  placeholder="请在此编辑简介" :value="firsts.description"></textarea>
        <input type="button" value="保存草稿" onclick="fdraft_click()">
    </div>
    <div id="next">
        <textarea id="article" style="width: 1000px;height: 400px;word-break:break-all" placeholder="请在此编辑正文" :value="nexts.context"></textarea>
        <input type="button" value="保存草稿" onclick="ndraft_click()">
        <input type="button" value="确认提交" onclick="update()">
    </div>
    <div>
        <br>
    </div>
    <div>
        <p>新建页面时，请在保存后再添加或修改图片(暂时仅限jpg文件)</p>
        <form enctype="multipart/form-data">
            <input type="file" id="imgFile" onchange="img_base()">
            <input type="button" value="上传图片" onclick="pic_click()">
        </form>
    </div>
</body>
</html>

<script src="../js/vue.js"></script>
<script src="../js/ajax.js"></script>
<script src="../js/update.js"></script>